# print((67.5 + 89.0 + 12.9 + 12.2) /4)

# avg = (67.5 + 89.0 + 12.9 + 32.2) / 4
# total = (67.5 - avg) ** 2 + (89.0 - avg) ** 2 + (12.9 - avg) ** 2 + (32.2 - avg) ** 2
# print(total / 3)

# a = 10
# print(a)
# a = 20
# print(a)

# a = 10
# print(a)
# b = 20
# a = b
# print(a)

# a = 10
# print(type(a))
#
# a = 10.2
# print(type(a))
#
# a = 'a'
# print(type(a))
#
# a = True
# print(type(a))
#
# a = "abc"
# print(type(a))
# print(len(a))

# 我是注释

'''
这是一段注释
'''

"""
这也是一段注释
"""

# a = 10
# print(a)
# b = "num: "
# print(a + b) # error 整型和字符串类型不能直接进行拼接

# a = 10
# print(f"num: {a}")

# num1 = input("请输入第一个整数: ")
# print(num1)
# print(type(num1))
# num2 = input("请输入第二个整数: ")
# print(num2)
# print(type(num2))
# print(f"num1 + num2 = {num1 + num2}")
#
# num1 = int(num1)
# print(type(num1))
# num2 = int(num2)
# print(type(num2))
# print(f"num1 + num2 = {num1 + num2}")

# a = input("请输入第一个小数: ")
# b = input("请输入第二个小数: ")
# c = input("请输入第三个小数: ")
# d = input("请输入第四个小数: ")
# a = float(a)
# b = float(b)
# c = float(c)
# d = float(d)
# print((a + b + c + d) / 4)

# print(1+2)
# print(1 * 2)
# print(1.2 ** 2)
# print(1.2 ** 0.5)
# print(1.2 / 2)
# print(1.2 // 2)
# print(1.2 % 2)

# a = 1.2
# b = 2.2
# c = 3.4
# print(a > b)
# print(a < b)
# print(a + b)
# print(c)
# print(a + b == c)
# print(-0.0000000001 <= a + b - c <= 0.0000000001)

# a = 10
# b = 0
# print(a > b or a / b == 1) # 截断
# print(a > b and a / b == 1) #error
# print(not a > b)

a = 10
b = a
c = d = 20
print(b)
print(c)
print(d)
a += 1
b -= 1
c *= 2
d /= 2
f = 30
f %= 1.7
print(a)
print(b)
print(c)
print(d)
print(f)
